package com.powernode.service.factory;

import com.powernode.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author syo 2319615164@qq.com
 * @description
 * @date 2024/10/3
 * @Copyright syo
 */
@Component
public class LoginServiceFactory {

    @Autowired
    private Map<String, LoginService> loginServiceMap = new HashMap<>();

    public LoginService getLoginService(String loginType) {
        return loginServiceMap.get(loginType);
    }
}
